package com.softer.chengxin.common.domin;

import lombok.Data;

/**
 * @author Gong Zhiyang
 * @date 2018/8/8
 */
@Data
public class CommonResult {
    /**
     * 状态码
     */
    private Integer data;
    /**
     * 状态信息
     */
    private String message;
    /**
     * id
     */
    private Integer id;
    /**
     * 文件名
     */
    private String name;

    public CommonResult(Integer data, String message) {
        this.data = data;
        this.message = message;
    }

    public CommonResult(Integer data, String message, Integer id) {
        this.data = data;
        this.message = message;
        this.id = id;
    }

    public CommonResult(Integer data, String message, Integer id, String name) {
        this.data = data;
        this.message = message;
        this.id = id;
        this.name = name;
    }
}
